StellarPay\Subscriptions\Models\Subscription A

Total Complexity 58
Dependencies 20
Dependents 42
Total lines 513
Lines of code 214
Logical lines of code 91
Comment lines 157
Methods 37
Properties 1

Methods 37

Method Rating Maintainability Complexity Lines of code
getFormattedNextBillingAt()
S
61 7 12
getLastRenewalOrder()
S
58 3 16
getPendingPaymentMessage()
S
57 2 18
getStripeDashboardLink()
S
67 3 8
calculateEndDate()
S
60 2 14
getTableName()
S
75 2 4
getLastPaymentMethod()
S
67 2 8
suspend()
S
69 2 7
cancel()
S
69 2 7
totalCount()
S
75 2 4
save()
S
69 2 7
complete()
S
69 2 7
getFormattedBillingPeriod()
S
69 2 7
updateStatus()
S
72 2 6
calculateNextBillingDate()
S
62 1 12
isScheduleType()
S
79 1 3
factory()
S
80 1 3
getLastOrderAmount()
S
75 1 4
getLastOrder()
S
79 1 3
getNewPaymentMethodForRenewal()
S
80 1 3
deleteNewPaymentMethodForRenewal()
S
80 1 3
getCancellableSubscriptionStatuses()
S
69 1 8
saveNewPaymentMethodForRenewal()
S
79 1 3
delete()
S
80 1 3
fromQueryBuilderObject()
S
80 1 3
query()
S
80 1 3
getMetaTableName()
S
80 1 3
create()
S
73 1 5
findByFirstOrderAndItemId()
S
71 1 6
findAllByFirstOrderId()
S
78 1 3
findByFirstOrderId()
S
78 1 3
findByTransactionId()
S
78 1 3
find()
S
79 1 3
canUpdateStatus()
S
80 1 3
hasEndDate()
S
80 1 3
getMetaTableNameWithoutDBPrefix()
S
80 1 3
canCancel()
S
79 1 3